package com.yxq.sso.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @author YXQ
 * @date 2021/11/16 10:16
 */
@Configuration
public class Swagger3Config {
    @Bean
    public Docket docket() {
        return new Docket(DocumentationType.OAS_30)
                .apiInfo(new ApiInfoBuilder()
                .contact(new Contact("SuiBiam组", "SuiBian.com","2106215434@qq.com"))
                .title("随便组4阶段培训项目组登录注册接口")
                .build());
    }
}
